<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1 {
	width: 195px;
}

.select_width {
	width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="table01 t_css" width="100%" border="0" cellpadding="0"  cellspacing="1" id="info">
	<tr>
	<td class="t_bar2" colspan="8">基本信息</td>
	</tr>
	
	<tr>
		<td  align="right"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="7">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	
	
	
	<tr>
		<td  align="right">注册资本：</td>
		<td colspan="3"><x:out select="$xmlData/data/org_basic_info/registe_fund" />万<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/registe_fund_money_name" /></td>
		<td align="right" nowrap><span class="color_red">*</span>动漫产品类型：</td>
		<td colspan="3">
		<c:set var="cartoon"><x:out select="$xmlData/data/proposal/cartoon_value" /></c:set>
		<cpt:checkbox key="cartoon" name="cartoon" repeatColumn="4" style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
		<input type="hidden" id="cartoon_value" name="proposal/cartoon_value" class="required" value="${cartoon}" label="动漫产品类型"/>
		<input type="hidden" name="proposal/cartoon_name" value="<x:out select="$xmlData/data/proposal/cartoon_name" />"/>
		</td>
	</tr>

	<tr>
	<td  align="right" nowrap><span class="color_red">*</span>动漫研发专业人员数：</td>
	<td colspan="3"><input class="required "  name="proposal/yfry" style="text-align:right;" onfocus="InitInput.setNumber(this,7,0,0)" label="动漫研发专业人员数" type="text"   value="<x:out select="$xmlData/data/proposal/yfry" />"/> 
	</td>
	<td  align="right" nowrap><span class="color_red">*</span>专业人员占职工总数比例（%）：</td>
	<td colspan="3"><input class="required "  name="proposal/yfry_pre" style="text-align:right;" onfocus="InitInput.setNumber(this,7,2,2)" label="专业人员占职工总数比例" type="text"    value="<x:out select="$xmlData/data/proposal/yfry_pre" />"/> 
	</td>
	</tr>
	<tr>
	<td  align="right" nowrap><span class="color_red">*</span>上年度动漫研发经费（万元）：</td>
	<td colspan="3"><input class="required "  name="proposal/yfjf" style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)" label="上年度动漫研发经费" type="text"   value="<x:out select="$xmlData/data/proposal/yfjf" />"/> 
	</td>
	<td  align="right" nowrap><span class="color_red">*</span>研发经费占动漫收入比例（%）：</td>
	<td colspan="3"><input class="required "  name="proposal/yfjf_pre" style="text-align:right;" onfocus="InitInput.setNumber(this,7,2,2)" label="研发经费占动漫收入比例" type="text"    value="<x:out select="$xmlData/data/proposal/yfjf_pre" />"/> 
	</td>
	</tr>
	<tr>
	<td  align="right" nowrap><span class="color_red">*</span>上年度动漫产品收入（万元）：</td>
	<td colspan="3"><input class="required "  name="proposal/cartoon_income" style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)" label="上年度动漫产品收入" type="text"   value="<x:out select="$xmlData/data/proposal/cartoon_income" />"/> 
	</td>
	<td  align="right" nowrap><span class="color_red">*</span>动漫收入占营业收入比例（%）：</td>
	<td colspan="3"><input class="required "  name="proposal/cartoon_income_pre" style="text-align:right;" onfocus="InitInput.setNumber(this,7,2,2)" label="动漫收入占营业收入比例" type="text"    value="<x:out select="$xmlData/data/proposal/cartoon_income_pre" />"/> 
	</td>
	</tr>
	<tr>
	<td  align="right" nowrap><span class="color_red">*</span>上年度营业收入（万元）：</td>
	<td colspan="3"><input class="required "  name="proposal/income" style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)" label="上年度营业收入" type="text"   value="<x:out select="$xmlData/data/proposal/income" />"/> 
	</td>
	<td  align="right" nowrap><span class="color_red">*</span>同比增幅（%）：</td>
	<td colspan="3"><input class="required "  name="proposal/income_pre" style="text-align:right;" onfocus="InitInput.setNumber(this,9,2,2,null,true)" label="同比增幅" type="text"    value="<x:out select="$xmlData/data/proposal/income_pre" />"/> 
	</td>
	</tr>
	<tr>
	<td  align="right" nowrap><span class="color_red">*</span>上年度税收收入（万元）：</td>
	<td colspan="3"><input class="required "  name="proposal/tax_income" style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)" label="上年度税收收入" type="text"   value="<x:out select="$xmlData/data/proposal/tax_income" />"/> 
	</td>
	<td  align="right" nowrap><span class="color_red">*</span>同比增幅（%）：</td>
	<td colspan="3"><input class="required "  name="proposal/tax_income_pre" style="text-align:right;" onfocus="InitInput.setNumber(this,9,2,2,null,true)" label="同比增幅" type="text"    value="<x:out select="$xmlData/data/proposal/tax_income_pre" />"/> 
	</td>
	</tr>
	<tr>
	<td  align="right" nowrap><span class="color_red">*</span>上年度贷款利息（万元）：</td>
	<td colspan="3"><input class="required "  name="proposal/loans" style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)" label="上年度贷款利息" type="text"    value="<x:out select="$xmlData/data/proposal/loans" />"/> 
	</td>
	<td  align="right" nowrap><span class="color_red">*</span>上年度担保费用（万元）：</td>
	<td colspan="3"><input class="required "  name="proposal/loans_pre" style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)" label="上年度担保费用" type="text"     value="<x:out select="$xmlData/data/proposal/loans_pre" />"/> 
	</td>
	</tr>
	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td colspan="7">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>
	</table>
	<table  id="tblCartoon" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="30%"><span class="color_red">*</span>原创动漫产品名称</th>
						<th class="TblHead" align="center"  width="20%"><span class="color_red">*</span>产权证号/许可证号</th>
						<th class="TblHead" align="center"  width="23%"><span class="color_red">*</span>播出分钟数/代码行数/漫画页数</th> 
						<th class="TblHead" align="center"  width="17%"><span class="color_red">*</span>单位投资比例（%）</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">
							<input type="radio" class="radiobutton" name="selCartoon" >
						</td>
						<td align="center">
							<span name="cartoons|cartoon[0]@seq_no" >[index]</span> 
						</td>
						<td align="center">
							<input type="text" name="cartoons|cartoon[0]|cartoon_name" maxlength="50" style="width:90%" class="input_text required" label="原创动漫产品名称"/>
						</td>
						<td align="center">
						    <input type="text" name="cartoons|cartoon[0]|permit" maxlength="50" style="width:90%" class="input_text required" label="产权证号/许可证号"/> 
						</td> 
						<td align="center">
						<input type="text" name="cartoons|cartoon[0]|number"  style="text-align:right;width:90%;" onfocus="InitInput.setNumber(this,7,0,0)"  class="input_text required" label="播出分钟数/代码行数/漫画页数"/>
						</td> 
						<td align="center">
						<input type="text" name="cartoons|cartoon[0]|org_invest"  style="text-align:right;width:90%;" onfocus="InitInput.setNumber(this,7,2,2)" class="input_text required" label="单位投资比例（%）"/>
						</td> 
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/cartoons/cartoon" var="cartoon">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">
							<input type="radio" class="radiobutton" name="selCartoon" >
						</td>
						<td align="center">
							<span   name="cartoons/cartoon[${flag}${index}]@seq_no" ><x:out select="$cartoon/@seq_no"/></span> 
						</td>
						<td align="center">
						    <input type="text" name="cartoons/cartoon[${flag}${index}]/cartoon_name" style="width:90%" maxlength="50" class="input_text required" label="原创动漫产品名称" value="<x:out select="$cartoon/cartoon_name"/>"/>
						</td>
						<td align="center">
							<input type="text" name="cartoons/cartoon[${flag}${index}]/permit" maxlength="50" style="width:90%" class="input_text required" label="产权证号/许可证号" value="<x:out select="$cartoon/permit"/>"/>
						</td> 
						<td align="center">
							<input type="text" name="cartoons/cartoon[${flag}${index}]/number"  style="text-align:right;width:90%;" onfocus="InitInput.setNumber(this,7,0,0)" class="input_text required" label="播出分钟数/代码行数/漫画页数" value="<x:out select="$cartoon/number"/>"/>
						</td> 
						<td align="center">
							<input type="text" name="cartoons/cartoon[${flag}${index}]/org_invest" style="text-align:right;width:90%;" onfocus="InitInput.setNumber(this,7,2,2)"  class="input_text required" label="单位投资比例（%）" value="<x:out select="$cartoon/org_invest"/>"/>
						</td> 
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblCartoon");
					</script>
				</tbody>
					</table>

					<table width="98%" align="center" id="but" border="0"  >
					<tr style="border: 0;">
					<td style="border: 0;">
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblCartoon',99,'原创动漫产品信息最多只能填写99条')){addNewRow('tblCartoon');showDateTag('tblCartoon');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblCartoon','selCartoon')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblCartoon','selCartoon')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblCartoon','原创动漫产品信息')">
					</td>
					</tr>
	</table>
	<br/>
	<table class="table01 t_css" width="100%" border="0" cellpadding="0"  cellspacing="1" id="infoxmzj">
	
	<tr>
	<td class="t_bar2" colspan="8">申请项目资金情况</td>
	</tr>
	<tr>
		<td  align="right"  >项目类别：</td>
		<td  colspan="3" ><x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
		<td  align="right"><span class="color_red">*</span>支持方式：</td>
		<td  colspan="3" >
		<c:set var="support_type"><x:out select="$xmlData/data/proposal/support_type_value" /></c:set>
		<cpt:select id="support_type"  key="sponsor_category"  className="select_width" value="${support_type}" onChange="setSponsorCategory('support_type')" ></cpt:select>
		<input type="hidden" id="support_type_value" name="proposal/support_type_value" class="required" value="${support_type}" label="支持方式">
		<input type="hidden" id="support_type_name"  name="proposal/support_type_name" value="<x:out select="$xmlData/data/proposal/property_name" />">
		<input name="proposal/sponsor_category" id="sponsor_category" type="hidden" value="<x:out select="$xmlData/data/proposal/sponsor_category" />">
			
		</td>
	</tr>

	<tr>
	
		<td  align="right" ><span class="color_red">*</span>申请金额（万元）：</td>
		<td  colspan="3">
			<input id="source_funds" class="required " name="proposal/total_funds" style="text-align:right;" onfocus="InitInput.setNumber(this,9,4,2)" label="拟申请资金金额" type="text"  class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/proposal/total_funds" />"/> 
		</td>
		<td  align="right">资金级次：</td>
		<td colspan="3">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right">归口管理部门：</td>
		<td  colspan="3">
			<span name="proposal/org_name">无锡市文化广电新闻出版局</span> 
		</td>
	    <td  align="right">管理类别：</td>
		<td  colspan="3">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
		
	</tr>
	<tr>
	<td  align="right"><span class="color_red">*</span>项目所属类别：</td>
		<td nowrap colspan="7">
			<c:set var="category"><x:out select="$xmlData/data/proposal/category_value" /></c:set>
		    <cpt:checkbox key="category" name="category" repeatColumn="9" style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox>
			<input type="hidden" id="category_value" name="proposal/category_value" class="required" value="${category}" label="项目所属类别">
			<input type="hidden" name="proposal/category_name" value="<x:out select="$xmlData/data/proposal/category_name" />">
		</td>
	</tr>
		<tr style="display:none"><td></td></tr>
	<tr>
		<td  align="right"><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="7">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="7">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
		
	</tr>
	</table>

	<table  width="100%" border="0" cellpadding="0" cellspacing="1" id="info3">
	<tr>
	<td class="t_bar2">申请资助依据条款</td>
	</tr>
	<tr>
		<td >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<table  width="100%" border="0" cellpadding="0" cellspacing="1" id="info4">
	<tr>
	<td class="t_bar2"><span class="color_red">*</span>项目概述：简要概括项目主要成就、创新性、发展前景以及预期对行业带动作用、社会经济发展的贡献（限300字）</td>
	</tr>
	<tr>
		<td ><textarea id="brief" name="proposal/summary" rows=7 cols=150 label="项目概述" class="textarea required maxlength:300"><x:out select="$xmlData/data/proposal/summary" /></textarea>
		<input type="hidden" name="proposal/summary_hidden" id="proposal/summary_hidden" value="<x:out select="$xmlData/data/proposal/summary_hidden" />" /></td>
	</tr>

</table>
<br />
<table class="t_css" width="100%" border="0" cellpadding="0" 
	cellspacing="1" id="info5">
	<tr>
		<td class="t_bar2" colspan="8">人员信息
		</td>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td>
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	
		<tr>
		<td  align="right">项目负责人：</td>
		<td>
			<input  name="proposal/fzr_psncode" type="hidden" required class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/> 
		    
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		    <c:set var="psnCode"><x:out select="$xmlData/data/proposal/psn_code" /></c:set>
		    <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect">
				<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
				<cpt:personSelect key="personSelect"  addRole="3"  psnCode="${psnCode}" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize>
		
		</td>
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL"> 
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		</security:authorize>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
		<input name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required  class="input_css required"  onchange="synFzrMsg(1)"  maxlength="50"  value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/>
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
		<input name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" onchange="synFzrMsg(1)" onfocus="InitInput.setNumber(this,11,0,0)"  maxlength="11"  class="input_css required mobile"   value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/>
		</td>
		</security:authorize>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
		
		</tr>
</table>
<script type="text/javascript">

function setSponsorCategory(id){
	
	$("#sponsor_category").val($("#"+id).find("option:selected").text());
    $("#sponsor_category_value").val($("#"+id).val());	
    
    var fileCode = $.trim($("#file_code23617").val());
    var support_type = $.trim($("#support_type").val());
    	if(support_type=='B'){
    		$("#berif23617").text("否");
    	}else{
    		$("#berif23617").text("是");
    	}
}

$(function (){
	var fileCode = $.trim($("#file_code23617").val());
    var support_type = $.trim($("#support_type_value").val());
    	if(support_type=='B'){
    		$("#berif23617").text("否");
    	}else{
    		$("#berif23617").text("是");
    	}
});
</script>
   



